package com.cmcc.waf.report.core.exception;

/**
 * 错误编码，由5位数字组成，前2位为模块编码，后3位为业务编码
 * <p>
 * 如：10001（10代表系统模块，001代表业务代码）
 * </p>
 *
 * @author
 */
public interface ErrorCode {

    int SUCCESS = 0;

    /**
     * WAF设备端的错误码：重新登录
     * timeoutError
     */
    int AUTH_AGAIN_LOGIN = 50001;

    int WAF_REQ_ERROR = -1;

    /**
     * 集管接口的错误码
     */

    int INTERNAL_SERVER_ERROR = -1;

    int NOT_NULL = 10001;

    int DB_RECORD_EXISTS = 10002;

    int PARAMS_INVALID_ERROR = 10003;

    int DEVICE_NOT_FOUND = 10004;

    int FILE_FORMAT_ERROR = 10005;

    int REQUEST_METHOD_ERROR = 10006;

    int FILE_NOT_EMPTY = 10007;

    int WAF_AUTH_VER_ERROR = 10008;

    int RPC_ERROR = 10009;

    int ERROR_BAD_FILE = 10010;

    int ERROR_INVALID_DATA = 10011;

    int ERROR_CRC = 10012;

    int ERROR_VALIDATE_ID_CARD = 10013;

    int ERROR_VALIDATE_BANK_CARD = 10014;

    int STRATEGY_ISSUE_FAIL = 10015;

    int INVALID_SYMBOL = 10016;
    /**
     * 地址对象错误码
     */
    int ADDRESS_OBJECT_EXISTED = 10101;

    int ADDRESS_OBJECT_NOT_EXISTED = 10102;
    /**
     * 服务对象错误码
     */
    int SERVICE_OBJECT_EXISTED = 10201;

    int SERVICE_OBJECT_NOT_EXISTED = 10202;

    /**
     * URL对象错误码
     */
    int URL_OBJECT_EXISTED = 10301;

    /**
     * 站点安全错误码
     */
    int SITE_NOT_EXISTS = 10401;

    int SITE_SECURITY_EXISTED = 10402;

    int SITE_SECURITY_ISSUE_ERROR = 10403;

    int SITE_SECURITY_MISMATCH = 10404;

    /**
     * 算法引擎错误码
     */
    int ALGORITHM_EXTRACT_ERROR = 10501;

    int ALGORITHM_NOT_EXISTED = 10502;

    /**
     * 事件引擎错误码
     */
    int EVENT_IPS_UPGRADE_ERROR = 10601;

    /**
     * 虚拟服务错误码
     */
    int VIRTUAL_SERVICE_EXISTED = 10701;

    int REAL_SERVER_ISSUE_ERROR = 10702;

    /**
     * 证书对象错误码
     */
    int CERT_FILE_NOT_NULL = 10800;

    int KEY_FILE_NOT_NULL = 10801;

    int CERT_FILE_NOT_EXISTED = 10802;

    int CERT_OBJECT_EXISTED = 10803;

    /**
     * 时间对象错误码
     */
    int TIME_OBJECT_EXISTED = 10900;

    int TIME_OBJECT_NOT_EXISTED = 10901;

    /**
     * 事件白名单
     */
    int EVENT_WHITELIST_EXISTED = 11100;

    /**
     * 全局访问控制 错误码
     */
    int ACCESS_CONTROL_BLACKLIST_EXISTED = 11200;

    int ACCESS_CONTROL_WHITELIST_EXISTED = 11201;

    int ACCESS_CONTROL_BLACKLIST_NOT_EXISTED = 11202;

    int ACCESS_CONTROL_WHITELIST_NOT_EXISTED = 11203;

}
